Part Number Hot Search : 
02500 INTER CAP002DG MAX860 WR100K F883APMC 1N6837 IDTQS
Product Description
Full Text Search
 

To Download DS1394U-33 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  19-4898; rev 4; 10/12 for pricing, delivery, and ordering information, please contact maxim direct at 1-888-629-4642, or visit maxim? website at www.maximintegrated.com. ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger general description the low-voltage serial-peripheral interface (spi)ds1390/ds1391/ds1394 and the low-voltage 3-wire ds1392/ds1393 real-time clocks (rtcs) are clocks/cal- endars that provide hundredths of a second, seconds, minutes, hours, day, date, month, and year information. the date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. the clock operates in either the 24-hour or 12-hour format with an am/pm indicator. one programmable time-of-day alarm is provided. a temperature-compensated voltage reference monitors the status of v cc and automatically disables the bus interface and switches to the backup supply if a powerfailure is detected. on the ds1390, a single open-drain output provides a cpu interrupt or a square wave at one of four selectable frequencies. the ds1391 replaces the sqw/ int pin with a rst output/ debounced input. the ds1390, ds1391, and ds1394 are programmed serially through an spi-compatible, bidirectional bus. the ds1392 and ds1393 communicate over a 3-wire serial bus, and the extra pin is used for either a sepa- rate interrupt pin or a rst output/debounced input. all five devices are available in a 10-pin ?op package,and are rated over the industrial temperature range. applications hand-held devicesgps/telematics devices embedded time stamping medical devices features ? real-time clock counts hundredths of seconds,seconds, minutes, hours, day, date, month, and year with leap-year compensation valid up to 2100 ? output pin configurable as interrupt or squarewave with programmable frequency of 32.768khz, 8.192khz, 4.096khz, or 1hz (ds1390/ds1393/ds1394 only) ? one time-of-day alarm ? power-fail detect and switch circuitry ? reset output/debounced input (ds1391/ds1393) ? separate sqw and int output (ds1392) ? trickle-charge capability ? spi supports modes 0 and 2 (ds1394) ? spi supports modes 1 and 3 (ds1390/ds1391) ? 3-wire interface (ds1392/ds1393) ? 4mhz at 3.0v and 3.3v ? 1mhz at 1.8v ? three operating voltages: 1.8v ?%, 3.0v ?0%,and 2.97 to 5.5v (ds1394: 3.3v ?0%) ? industrial temperature range: -40? to +85? ? underwriters laboratories (ul) recognized ordering information typical operating circuits and pin configurations appear at end of the data sheet. note: all devices are rated for the -40? to +85? operating temperature range. + denotes a lead(pb)-free/rohs-compliant package. ? a ??anywhere on the top mark denotes a lead(pb)- free/rohs-compliant package. rr = revision code on second line of top mark. part typ operating voltage (v) pin- package top mark ds1390 u-18+ 1.8 10 sop 1390 rr-18 ds1390u-3+ 3.0 10 sop 1390 rr-3 ds1390u-33+ 3.3 10 sop 1390 rr-33 ds1391 u-18+ 1.8 10 sop 1391 rr-18 ds1391u-3+ 3.0 10 sop 1391 rr-3 ds1391u-33+ 3.3 10 sop 1391 rr-33 ds1392 u-18+ 1.8 10 sop 1393 rr-18 ds1392u-3+ 3.0 10 sop 1392 rr-3 ds1392u-33+ 3.3 10 sop 1392 rr-33 ds1393 u-18+ 1.8 10 sop 1393 rr-18 ds1393u-3+ 3.0 10 sop 1393 rr-3 ds1393u-33+ 3.3 10 sop 1393 rr-33 ds1394 u-33+ 3.3 10 sop 1394 rr-33 spi is a trademark of motorola, inc. downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 2 maxim integrated absolute maximum ratings recommended dc operating conditions (v cc = v cc(min) to v cc(max) , t a = -40? to +85?, unless otherwise noted. typical values are at nominal supply voltage and t a = +25?, unless otherwise noted.) (note 1) stresses beyond those listed under ?bsolute maximum ratings?may cause permanent damage to the device. these are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. voltage range on v cc pin relative to ground .....-0.3v to +6.0v voltage range on inputs relative to ground ...............................................-0.3v to (v cc + 0.3v) operating temperature range ...........................-40 c to +85 c storage temperature range .............................-55? to +125? soldering temperature...........................refer to the ipc/jedec j-std-020 specification. parameter symbol conditions min typ max units ds139x-33 2.97 3.3 5.50 ds139x-3 2.7 3.0 3.3 supply voltage (note 2) v cc ds139x-18 1.71 1.8 1.89 v logic 1 v ih (note 2) 0.7 x v cc v cc + 0.5 v logic 0 v il (note 2) -0.3 +0.3 x v cc v supply voltage, pullup sqw/ int , sqw, int , v cc = 0v v pu (note 2) 5.5 v -33 1.3 3.0 v cc(max) -3 1.3 3.0 3.7 v backup voltage (note 2) v backup -18 1.3 3.0 3.7 v -33 2.70 2.88 2.97 -3 2.45 2.6 2.70 power-fail voltage (note 2) v pf -18 1.51 1.6 1.71 v r1 (notes 3, 4) 250 r2 (notes 3, 5) 2000 trickle-charge current-limiting resistors r3 (notes 3, 6) 4000  input leakage i li (note 7) -1 +1 a i/o leakage i lo (note 8) -1 +1 a rst pin i/o leakage i lorst (note 9) -200 +10 a -33, -3 (v oh = 0.85 x v cc ) -1 dout logic 1 output i ohdout -18 (v oh = 0.80 x v cc ) 0.750 ma -33, -3 (v ol = 0.15 x v cc ) 3 dout logic 0 output i ohdout -18 (v ol = 0.20 x v cc ) 2 ma v cc > 1.71v; v ol = 0.4v 3.0 ma logic 0 output (ds1390/ds1393/ds1394 sqw/ int ; ds1392 sqw, int ; ds1391/ds1393 rst ) i olsir 1.3v < v cc < 1.71v; v ol = 0.4v 250 a -33 2 -3 2 ma v cc active supply current (note 10) i cca -18 500 a downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 3 maxim integrated recommended dc operating conditions (continued)(v cc = v cc(min) to v cc(max) , t a = -40? to +85?, unless otherwise noted. typical values are at nominal supply voltage and t a = +25?, unless otherwise noted.) (note 1) parameter symbol conditions min typ max units -33 115 175 -3 80 125 v cc standby current (note 11) i ccs -18 60 100 a v backup leakage current (v backup = 3.7v, v cc = v cc(max) ) i backuplkg 15 100 na dc electrical characteristics(v cc = 0v, v backup = 3.7v, t a = -40? to +85?, unless otherwise noted.) (note 1) parameter symbol conditions min typ max units v backup current osc on, sqw off i backup1 (note 12) 500 1000 na v backup current osc on, sqw on (32khz) i backup2 (note 12) 600 1150 na v backup current osc on, sqw on, v backup = 3.0v, t a = +25? i backup3 (note 12) 600 1000 na v backup current, osc off (data retention) i backupdr (note 12) 25 100 na ac electrical characteristics?pi interface(v cc = v cc(min) to v cc(max) , t a = -40? to +85?, unless otherwise noted.) (note 1) parameter symbol condition min typ max units 2.7v  v cc  5.5v 0 4 sclk frequency (note 13) f sclk 1.71v  v cc  1.89v 0 1 mhz data to sclk setup t dc (notes 13, 14) 30 ns sclk to data hold t cdh (notes 13, 14) 30 ns 2.7v  v cc  5.5v 80 sclk to data valid (notes 13, 14, 15) t cdd 1.71v  v cc  1.89v 160 ns 2.7v  v cc  5.5v 110 sclk low time (note 13) t cl 1.71v  v cc  1.89v 400 ns 2.7v  v cc  5.5v 110 sclk high time (note 13) t ch 1.71v  v cc  1.89v 400 ns sclk rise and fall t r , t f 200 ns cs to sclk setup (note 13) t cc 400 ns sclk to cs hold (note 13) t cch 100 ns 2.7v  v cc  5.5v 400 cs inactive time (note 13) t cwh 1.71v  v cc  1.89v 500 ns cs to output high impedance t cdz (notes 13, 14) 40 ns downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 4 maxim integrated cs cpha = 1 sclk t cc t dc t r t f t cdd t cdz t cdh t cl t ch din w/r a6 a0 d0 write address byte note: sclk can be either polarity shown for cpol = 1. dout d7 read data byte high impedance figure 1a. timing diagram?pi read transfer (mode 3) cs cpha = 0 sclk t cc t dc t r t f t cdd t cdz t cdh t cl t ch din w/r a6 a0 d0 write address byte note: sclk can be either polarity shown for cpol = 0. dout d7 read data byte high impedance figure 1b. timing diagram?pi read transfer (mode 0) downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 5 maxim integrated cs cpha = 1 sclk t cc t dc t r t f t cch t cwh t cdh t cl t ch din w/r a6 a0 d0 write address byte note: sclk can be either polarity shown for cpol = 1. dout d7 read data byte high impedance figure 2a. timing diagram?pi write transfer (mode 3) cs cpha = 0 sclk t cc t dc t r t f t cch t cwh t cdh t cl t ch din w/r a6 a0 d0 write address byte note: sclk can be either polarity shown for cpol = 0. dout d7 read data byte high impedance figure 2b. timing diagram?pi write transfer (mode 0) downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 6 maxim integrated ac electrical characteristics?-wire interface(v cc = v cc(min) to v cc(max) , t a = -40? to +85?.) (note 1) (figures 3, 4) parameter symbol condition min typ max units 2.7v  v cc  5.5v 0 4 sclk frequency (note 13) f sclk 1.71v  v cc  1.89v 0 1 mhz data to sclk setup t dc (notes 13, 14) 30 ns sclk to data hold t cdh (notes 13, 14) 30 ns 2.7v  v cc  5.5v 80 sclk to data valid (notes 13, 14, 15) t cdd 1.71v  v cc  1.89v 160 ns 2.7v  v cc  5.5v 110 sclk low time (note 13) t cl 1.71v  v cc  1.89v 400 ns 2.7v  v cc  5.5v 110 sclk high time (note 13) t ch 1.71v  v cc  1.89v 400 ns sclk rise and fall t r , t f 200 ns cs to sclk setup t cc (note 13) 400 ns sclk to cs hold t cch (note 13) 100 ns 2.7v  v cc  5.5v 400 cs inactive time (note 13) t cwh 1.71v  v cc  1.89v 500 ns cs to output high impedance t cdz (note 13, 14) 40 ns ac electrical characteristics(v cc = v cc(min) to v cc(max) , t a = -40? to +85?, unless otherwise noted.) (note 1) parameter symbol conditions min typ max units pushbutton debounce pb db 160 200 ms reset active time t rst 160 200 ms oscillator stop flag (osf) delay t osf (note 16) 100 ms downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 7 maxim integrated t dc t cl t ch t cdh t cc t cdd t cdz t r t f a0 a1 r/w d0 d7 write address byte read data byte ce sclk i/o figure 3. timing diagram?-wire read transfer i/o ce sclk t dc t cl t ch t cdh t cc t cch t cwh t r t f a0 a1 r/w d0 d7 write address byte write data byte figure 4. timing diagram?-wire write transfer downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 8 maxim integrated outputs v cc v pf(max) inputs high impedance rst don't care valid recognized recognized valid v pf(min) t rst t rpu t r t f v pf v pf figure 5. power-up/down timing t rst pb db rst figure 6. pushbutton reset timing power-up/power-down characteristics(t a = -40? to +85?) (figures 5, 6) parameter symbol conditions min typ max units v cc detect to recognize inputs (v cc rising) t rst (note 17) 160 200 ms v cc fall time; v pf(max) to v pf(min) t f 300 ? v cc rise time; v pf(min) to v pf(max) t r 0 s downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 9 maxim integrated capacitance(t a = +25?) parameter symbol conditions min typ max units capacitance on all input pins c in 10 pf capacitance on all output pins (high impedance) c io 10 pf warning: negative undershoots below -0.3v while the part is in battery-backed mode can cause loss of data. note 1: limits at -40? are guaranteed by design and not production tested. note 2: all voltages are referenced to ground. note 3: the use of the 250 ? trickle-charge resistor is not allowed at v cc > 3.63v and should not be enabled. use of the diode is not recommended for v cc < 3.0v. note 4: measured at v cc = typ, v backup = 0v, register 0fh = a5h. note 5: measured at v cc = typ, v backup = 0v, register 0fh = a6h. note 6: measured at v cc = typ, v backup = 0v, register 0fh = a7h. note 7: sclk, din, cs on ds1390/ds1391/ds1394; sclk, and ce on ds1392/ds1393. note 8: dout, sqw/ int (ds1390/ds1393/ds1394), sqw, and int (ds1392). note 9: the rst pin has an internal 50k ? (typ) pullup resistor to v cc . note 10: i cca ?clk clocking at max frequency = 4mhz for 3v and 3.3v versions; 1mhz for 1.8v version; rst (ds1391/ds1393) inactive. outputs are open. note 11: specified with bus inactive. note 12: measured with a 32.768khz crystal attached to x1 and x2. typical values measured at +25? and 3.0v backup . note 13: with 50pf load. note 14: measured at v ih = 0.7 x v dd or v il = 0.2 x v dd , 10ns rise/fall times. note 15: measured at v oh = 0.7 x v dd or v ol = 0.2 x v dd . measured from the 50% point of sclk to the v oh minimum of sdo. note 16: the parameter t osf is the time that the oscillator must be stopped for the osf flag to be set over the voltage range of 0 v cc v cc(max) and 1.3v v backup 5.5v. note 17: this delay applies only if the oscillator is enabled and running. if the eosc bit is 1, the startup time of the oscillator is added to this delay. downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 10 maxim integrated typical operating characteristics (v cc = +3.3v, t a = +25?, unless otherwise noted.) i backup vs. v backup , bbsq1 = 0 ds1390 toc01 v backup (v) supply current (na) 4.5 4.9 4.1 3.3 3.7 2.9 2.5 2.1 1.7 350 400 450 500 550 600300 1.3 5.3 v cc = 0 i backup vs. v backup , bbsq1 = 1 ds1390 toc02 v backup (v) supply current (na) 5.3 4.9 4.1 4.5 2.1 2.5 2.9 3.3 3.7 1.7 350 400 450 500 550 600 650 700 750 800 850 900 950 1000 300 1.3 v cc = 0v i backup vs. temperature v backup = 3.0v ds1390 toc03 temperature ( c) supply current (na) 80 60 40 20 0 -20 300 400350 450 500 550 600250 -40 v cc = 0v oscillator frequency vs. supply voltage ds1390 toc04 supply (v) frequency (hz) 5.3 4.8 4.3 3.8 3.3 2.8 2.3 1.8 32767.85 32767.90 32767.95 32768.0032767.80 1.3 downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 11 maxim integrated pin description pin ds1390/ ds1394 ds1391 ds1392 ds1393 name function 1 1 1 1 x1 2 2 2 2 x2 connections for standard 32.768khz quartz crystal. the internal oscillator circuitry is designed for operation with a crystal having a 6pf specifi ed load capacitance (c l ). pin x1 is the input to the oscillator and can optionally be connected to an external 32.768khz oscillator. the output of the internal oscillator, pin x2, is floated if an external oscillator is conne cted to pin x1. 3 3 3 3 v backup dc backup power input for primary cell. this pin is a rechargeable battery/super cap or a secondary supply. ul recognized to ensure against reverse charging current when used with a lithium battery ( www.maxim- ic.com/qa/info/w/ ). this pin must be grounded if not used. diodes in series between the battery and the v backup pin may prevent proper operation. 4 4 cs spi chip-select input. this pin is used to select or deselect the part. 4 4 ce chip enable for 3-wire interface 5 5 5 5 gnd ground 6 6 din spi data input. this pin is used to shift address and data into t he part. 6 int interrupt output. this pin is used to output the interrupt signal, if enabled by the control register. the maximum voltage on this pin is 5.5v, independent of v cc or v backup . if enabled, int functions when the device is powered by either v cc or v backup . 9 6 rst reset. this active-low, open-drain output indicates the status of v cc relative to the v pf specification. as vcc falls below v pf , the rst pin is driven low. when vcc exceeds v pf , for t rst , the rst pin is driven high impedance. this pin is combined with a debounced pushbutton input function. this pin can be activated by a pushbutton reset request. this pin has an in ternal, 50k  (typ) pullup resistor to v cc . no external pullup resistors should be connected. if the crystal oscillator is disabled, the startup time of the oscillator is added to the t rst delay. 7 7 dout spi data output. data is output on this pin when the part is in read mode. cmos push-pull driver. 7 7 i/o input/output for 3-wire interface. cmos push-pull driver. 8 8 8 8 sclk serial clock input. this pin is used to control the timing of data into and out of the part. 9 9 sqw/ int square-wave/interrupt output. this pin is used to output the programmabl e square wave or interrupt signal. when enabled by setting the esq bit to logic 1, the sqw/ int pin outputs one of four frequencies: 32.768khz, 8.192khz, 4.096khz, or 1hz. this pin is open drain and requires an external pullup resistor. the maximum voltage on this pin is 5.5v, independ ent of v cc or v backup . if enabled, sqw/ int functions when the device is powered by either v cc or v backup . if not used, this pin can be left open. 9 sqw square-wave output. this pin is open drain and requires an external pullup resistor. the maximum voltage on this pin is 5.5v, independent of v cc or v backup . if enabled, sqw functions when the device is powered by either v cc or v backup . if not used, this pin can be left open. 10 10 10 10 v cc dc power pin for primary power supply downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 12 maxim integrated detailed description the ds1390?s1394 rtcs are low-power clocks/calen-dars with alarms. address and data are transferred seri- ally through a 4-wire spi interface for the ds1390 and ds1391 and through a 3-wire interface for the ds1392, ds1393, and ds1394. the ds1390/ds1391 operate as a slave device on the spi serial bus. the ds1392/ds1393 operate using a 3-wire synchronous serial bus. access is obtained by selecting the part by the cs pin (ce on ds1392/ds1393) and clocking data into/out of the partusing the sclk and din/dout pins (i/o on ds1392/ds1393). multiple-byte transfers are supported within one cs low period (see the spi serial-data bus section). the clocks/calendars provide hundredths ofseconds, seconds, minutes, hours, day, date, month, and year information. the alarm functions are performed off all timekeeping registers, allowing the user to set high resolution alarms. the date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. the clocks operate in either the 24-hour or 12-hour format with an am/pm indicator. all five devices have a built-in tempera- ture-compensated voltage reference that detects power failures and automatically switches to the battery supply. additionally, the devices can provide trickle charging of the backup voltage source, with selectable charging resistance and diode voltage drops. functional diagram bus interface v cc level detect, power switch, write protect, trickle charger (ds1390/91/94) din (ds1390/91/94) dout (ds1392/93) i/o x2 sclk v cc gnd v backup x1 (ds1390/91/94) cs (ds1392/93) (ce) square-wave rate selector, int, mux, rst output hundredths-of- seconds generator real-time clock with hundredths of seconds trickle register sqw/int (ds1390/93/94) control/status registers alarm registers rst (ds1391) sqw (ds1392) ds1390/ds1391/ ds1392/ds1393/ds1394 c l c l n downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 13 maxim integrated power control the power-control function is provided by a precise,temperature-compensated voltage reference and a comparator circuit that monitors the v cc level. the device is fully accessible and data can be written andread when v cc is greater than v pf . however, when v cc falls below v pf , the internal clock registers are blocked from any access. if v pf is less than v backup , the device power is switched from v cc to v backup when v cc drops below v pf . if v pf is greater than v backup , the device power is switched from v cc to v backup when v cc drops below v backup . timekeeping operation and register data are main-tained from the v backup source until v cc is returned to nominal levels (table 1). after v cc returns above v pf , read and write access is allowed after rst goes high (figure 5). oscillator circuit all five devices use an external 32.768khz crystal. theoscillator circuit does not require any external resistors or capacitors to operate. table 2 specifies several crys- tal parameters for the external crystal. if a crystal is used with the specified characteristics, the startup time is usually less than one second. clock accuracy the accuracy of the clock is dependent upon the accu-racy of the crystal and the accuracy of the match between the capacitive load of the oscillator circuit and the capacitive load for which the crystal was trimmed. additional error is added by crystal frequency drift caused by temperature shifts. external circuit noise coupled into the oscillator circuit can result in the clock running fast. figure 7 shows a typical pc board layout for isolation of the crystal and oscillator from noise. refer to application note 58: crystal considerations with maxim real-time clocks for detailed information. parameter symbol min typ max units nominal frequency f o 32.768 khz series resistance esr 55 k load capacitance c l 6p f table 2. crystal specifications* * the crystal, traces, and crystal input pins should be isolated from rf generating signals. refer to application note 58: crystal considerations for maxim real-time clocks for addi- tional specifications. supply condition read/write access) powered by v cc < v pf , v cc < v backup no v backup v cc < v pf , v cc > v backup no v cc v cc > v pf , v cc < v backup yes v cc v cc > v pf , v cc > v backup yes v cc table 1. power control local ground plane (layer 2) crystal gnd x2 x1 note: avoid routing signal lines in the crosshatched area (upper left quadrant) of the package unless there is a ground plane between the signal line and the device package. figure 7. layout example downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 14 maxim integrated address map table 3 shows the address map for the ds1390ds1393 rtc and ram registers. the rtc registers are located in address locations 00h to 0fh in read mode, and 80h to 8fh in write mode. during a multibyte access, when the address pointer reaches 0fh, it wraps around to location 00h. on the falling edge of the cs pin (ds1390/ds1391/ds1394) or the rising edge of ce (ds1392/ds1393), the current time is transferred toa second set of registers. the time information is read from these secondary registers, while the clock may continue to run. this eliminates the need to re-read the registers if the main registers update during a read. to avoid rollover issues when writing to the time and dateregisters, all registers should be written before the hun- dredths-of-seconds registers reaches 99 (bcd). when reading from the hundredths of seconds register, there is a possibility that the data transfer happens at the same time as an increment of the register. if this occurs, the data in the buffer may be incorrect. the chances of this happening is approximately 170ppb. there are two ways to deal with this. the first method is to synchronize enabling the device(ce or cs ) with the square wave or interrupt output (ds1390?s1394). enabling the device, either afterdetecting the falling edge of the interrupt output or the rising edge of the square-wave output, ensures that the two events are not simultaneous. the second method is to read the hundredths of sec- onds register until the data for two consecutive reads match. with this method, the master must be able to read the register at least twice within the 10ms update period of the hundredths of seconds register. either of the described methods ensures that the data in all the registers is correct. if the hundredths of seconds register is not used, it is also possible for the same prob- lem to occur when reading the seconds register. the probability of an error is inversely proportional to the rate of the register's update frequency in relation to the hun- dredth of seconds register, so the error rate for the sec- onds register would be approximately 1.7ppb. the same methods used for the hundredth of seconds register would be used for the seconds register. write address read address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 function range 80h 00h tenths of seconds hundredths of seconds hundredths of seconds 0C99 bcd 81h 01h 0 10 seconds seconds seconds 00C59 bcd 82h 02h 0 10 minutes minutes minutes 00C59 bcd am /pm 83h 03h 0 12/ 24 10 hour 10 hour hour hours 1C12 +am/pm 00C23 bcd 84h 04h 0 0 0 0 0 day day 1C7 bcd 85h 05h 0 0 10 date date date 01C31 bcd 86h 06h century 0 0 10 month month month/ century 01C12 + century bcd 87h 07h 10 year year year 00C99 bcd 88h 08h tenths of seconds hundredths of seconds alarm hundredths of seconds 0C99 bcd 89h 09h am1 10 seconds seconds alarm 00C59 bcd 8ah 0ah am2 10 minutes minutes alarm 00C59 bcd table 3. address map downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 15 maxim integrated hundredths-of-seconds generator the hundredths-of-seconds generator circuit shown inthe functional diagram is a state machine that divides the incoming frequency (4096hz) by 41 for 24 cycles and 40 for one cycle. this produces a 100hz output that is slightly off during the short term, and is exactly correct every 250ms. the divide ratio is given by: ratio = [41 x 24 + 40 x 1] / 25 = 40.96 thus, the long-term average frequency output isexactly the desired 100hz. clock and calendar the time and calendar information is obtained by read-ing the appropriate register bytes. see table 3 for the rtc registers. the time and calendar are set or initial- ized by writing the appropriate register bytes. the con-tents of the time and calendar registers are in the bina- ry-coded decimal (bcd) format. the day-of-week register increments at midnight. values that correspond to the day-of-week are user-defined but must be sequential (i.e., if 1 equals sunday, then 2 equals monday, and so on). illogical time and date entries result in undefined operation. the ds1390?s1393 can run in either 12-hour or 24-hour mode. bit 6 of the hours register is defined as the 12- or 24-hour mode-select bit. when high, the 12-hour mode is selected. in the 12- hour mode, bit 5 is the am /pm bit with logic high being pm. in the 24-hour mode, bit 5 is the second 10-hourbit (20 to 23 hours). changing the 12/ 24 -hour mode- select bit requires that the hours data be re-entered,including the alarm register (if used). the century bit (bit 7 of the month register) is toggled when the years register overflows from 99 to 00. write address read address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 function range am /pm 8bh 0bh am3 12/ 24 10 hour 10 hour hour alarm hours 1C12 + am/pm 00C23 bcd day alarm day 1C7 bcd 8ch 0ch am4 dy/ dt 10 date date alarm date 01C31 bcd 0 bbsqi rs2 rs1 intcn 0 aie ds1390/93/94 0 x x x x 0 x ds1391 8dh 0dh eosc 0 bbsqi rs2 rs1 esq 0 aie control ds1392 8eh 0eh osf 0 0 0 0 0 0 af status 8fh 0fh tcs3 tcs2 tcs1 tcs0 ds1 ds0 rout1 rout0 trickle charger table 3. address map (continued) note: unless otherwise specified, the state of the registers is not defined when power (v cc and v backup ) is first applied. x = general-purpose read/write bit. 0 = always reads as zero. downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 16 maxim integrated alarms all five devices contain one time-of-day/date alarm.writing to registers 88h through 8ch sets the alarm. the alarm can be programmed (by the alarm enable and intcn bits of the control register) to activate the sqw/ int or int output on an alarm-match condition. the alarm can activate the sqw/ int or int output while the device is running from v backup if bbsqi is enabled. bit 7 of each of the time-of-day/date alarmregisters are mask bits (table 4). when all the mask bits for each alarm are logic 0, an alarm only occurs when the values in the timekeeping registers 00h to 06h match the values stored in the time-of-day/date alarm registers. the alarms can also be programmed to repeat every second, minute, hour, day, or date. table 4 shows the possible settings. configurations not listed in the table result in illogical operation. the dy/ dt bits (bit 6 of the alarm day/date registers) control whether the alarm value stored in bits 0 to 5 ofthat register reflects the day of the week or the date of the month. if dy/ dt is written to logic 0, the alarm is the result of a match with date of the month. if dy/ dt is written to a logic 1, the alarm is the result of a matchwith day of the week. when the rtc register values match alarm register set- tings, the alarm-flag (af) bit is set to logic 1. if the alarm-interrupt enable (aie) is also set to logic 1 and the intcn bit is set to logic 1, the alarm condition acti- vates the sqw/ int signal. since the contents of register 08h are expected to nor-mally contain a match value of 00?9 decimal, the codes f[0?], and ff have been used to tell the part to mask the tenths or hundredths of seconds accordingly. power-up/down, reset, and pushbutton reset functions a precision temperature-compensated reference andcomparator circuit monitors the status of v cc . when an out-of-tolerance condition occurs, an internal power-failsignal is generated that blocks read/write access to the device and forces the rst pin (ds1391/ds1393 only) low. when v cc returns to an in-tolerance condition, the internal power-fail signal is held active for t rst to allow the power supply to stabilize, and the rst (ds1391/ ds1393 only) pin is held low. if the eosc bit is set to logic 1 (to disable the oscillator in battery-backupmode), the internal power-fail signal and the rst pin is kept active for t rst plus the startup time of the oscillator. the ds1391/ds1393 provide for a pushbutton switch tobe connected to the rst output pin. when the ds1391/ds1393 are not in a reset cycle, it continuouslymonitors the rst signal for a low-going edge. if an edge is detected, the part debounces the switch bypulling the rst pin low and inhibits read/write access. after pb db has expired, the part continues to monitor the rst line. if the line is still low, it continues to monitor the line looking for a rising edge. upon detectingrelease, the part forces the rst pin low and holds it low for an additional pb db . alarm register mask bits (bit 7) registe r 08h dy/ dt am4 am3 am2 am1 alarm rate ffh x 1 1 1 1 alarm every 1/100th of a second f[0C9]h x 1 1 1 1 alarm when hundredths of seconds match [0C9][0C9] x 1 1 1 1 alarm when tenths, hundredths of seconds ma tch [0C9][0C9] x 1 1 1 0 alarm when seconds, tenths, and hundredths of seconds match [0C9][0C9] x 1 1 0 0 alarm when minutes, seconds, tenths, and hundredths of seconds match [0C9][0C9] x 1 0 0 0 alarm when hours, minutes, seconds, tenths, and hundredths of seconds match [0C9][0C9] 0 0 0 0 0 alarm when date, hours, minutes, seconds, tenths, and hundredths of seconds match [0C9][0C9] 1 0 0 0 0 alarm when day, hours, minutes, seconds, tenths, and hundredths of seconds match table 4. alarm mask bits downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 17 maxim integrated bit 7: enable oscillator ( eosc ). when set to logic 0, this bit starts the oscillator. when this bit is set to logic1, the oscillator is stopped whenever the device is pow- ered by v backup . the oscillator is always enabled when v cc is valid. this bit is enabled (logic 0) when v cc is first applied. bit 5: battery-backed square-wave and interruptenable (bbsqi). this bit when set to logic 1 enables the square wave or interrupt output when v cc is absent and the ds1390/ds1392/ds1393/ds1394 are being pow-ered by the v backup pin. when bbsqi is logic 0, the sqw/ int pin (or sqw and int pins) goes high imped- ance when v cc falls below the power-fail trip point. this bit is disabled (logic 0) when power is first applied.bits 4 and 3: rate select (rs2 and rs1). these bits control the frequency of the square-wave output whenthe square wave has been enabled. the table below shows the square-wave frequencies that can be select- ed with the rs bits. these bits are both set to logic 1 (32khz) when power is first applied. bit 2: interrupt control (intcn). this bit controls the sqw/ int signal. when the intcn bit is set to logic 0, a square wave is output on the sqw/ int pin. the oscilla- tor must also be enabled for the square wave to be out-put. when the intcn bit is set to logic 1, a match between the timekeeping registers and either of the alarm registers then activates the sqw/ int (provided the alarm is also enabled). the corresponding alarmflag is always set, regardless of the state of the intcn bit. the intcn bit is set to logic 0 when power is first applied. bit 0: alarm interrupt enable (aie). when set to logic 1, this bit permits the alarm flag (af) bit in the statusregister to assert sqw/ int (when intcn = 1). when the aie bit is set to logic 0 or intcn is set to logic 0,the af bit does not initiate the sqw/ int signal. the aie bit is disabled (logic 0) when power is first applied. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 eosc 0 bbsqi rs2 rs1 intcn 0 aie control register (0d/8dh) (ds1390/ds1393/ds1394 only) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 eosc 0xxxx0x control register (0d/8dh) (ds1391 only) rs2 rs1 square-wave output frequency 0 0 1hz 0 1 4.096khz 1 0 8.192khz 1 1 32.768khz special-purpose registers the ds1390?s1394 have three additional registers(control, status, and trickle charger) that control the rtc, alarms, square-wave output, and trickle charger. control bits used in the ds1390 become general-pur- pose, battery-backed, nonvolatile sram bits in the ds1391. downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 18 maxim integrated bit 7: oscillator stop flag (osf). a logic 1 in this bit indicates that the oscillator has stopped or wasstopped for some time and may be used to judge the validity of the clock and calendar data. this bit is edge-triggered and is set to logic 1 when the internal circuitry senses the oscillator has transitioned from a normal run state to a stop condition. the following are examples of conditions that can cause the osf bit to be set: 1) the first time power is applied. 2) the voltage present on v cc and v backup is insufficient to support oscillation. 3) the eosc bit is turned off. 4) external influences on the crystal (i.e., noise, leakage, etc.). this bit remains at logic 1 until written to logic 0. thisbit can only be written to logic 0. attempting to write osf to logic 1 leaves the value unchanged. bit 6: alarm flag (af). a logic 1 in the af bit indicates that the time matched the alarm registers. if the aie bit the intcn bit used in the ds1390/ds1393/ds1394becomes the sqw pin-enable bit in the ds1392. this bit powers up a zero, making sqw active. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 eosc 0 bbsqi rs2 rs1 esqw 0 aie control register (0d/8dh) (ds1392 only) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 o s f000000a f status register (0e/8eh) is logic 1 and the intcn bit is set to logic 1, thesqw/ int pin is also asserted. af is cleared when writ- ten to logic 0. this bit can only be written to logic 0.attempting to write to logic 1 leaves the value unchanged. trickle-charge register (0f/8fh) the simplified schematic in figure 8 shows the basiccomponents of the trickle charger. the trickle-charge select (tcs) bits (bits 4 to 7) control the selection of the trickle charger. to prevent accidental enabling, only a pattern on 1010 enables the trickle charger. all other patterns disable the trickle charger. the trickle charger is disabled when power is first applied. the diode-select (ds) bits (bits 2 and 3) select whether or not a diode is connected between v cc and v backup . if ds is 01, no diode is selected or if ds is 10, a diodeis selected. the rout bits (bits 0 and 1) select the value of the resistor connected between v cc and v backup . table 5 shows the resistor selected by the resistor-select (rout) bits and the diode selected bythe diode-select (ds) bits. tcs3 tcs2 tcs1 tcs0 ds1 ds0 rout1 rout0 function x x x x 0 0 x x disabled x x x x 1 1 x x disabled x x x x x x 0 0 disabled 10100101n o d i ode, 250 resistor 10101001 one diode, 250 resistor 10100110n o d i ode, 2k resistor 10101010 one diode, 2k resistor 10100111n o d i ode, 4k resistor 10101011 one diode, 4k resistor 00000000 initial default value?isabled table 5. trickle-charge register downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 19 maxim integrated the user determines diode and resistor selectionaccording to the maximum current desired for battery or super cap charging. the maximum charging current can be calculated as illustrated in the following exam- ple. assume that a system power supply of 3.3v is applied to v cc and a super cap is connected to v backup . also, assume that the trickle charger has been enabled with a diode and resistor r2 between v cc and v backup . the maximum current i max would therefore be calculated as follows: i max = (3.3v - diode drop) / r2 (3.3v - 0.7v) / 2k ? 1.3ma as the super cap changes, the voltage drop betweenv cc and v backup decreases and therefore the charge current decreases. r1 250 r2 2k r3 4k v cc v backup bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 tcs3 tcs2 tcs1 tcs0 ds1 ds0 rout1 rout0 trickle-charge register (8fh write, 0fh read) 1 0f 16 select note: only 1010b enables charger 1 of 2 select 1 of 3 select tcs[3:0] = trickle-charge selectds[1:0] = diode select rout[1:0] = resistor select figure 8. ds1390?s1394 programmable trickle charger mode cpha cs sclk sdi sdo disable x high input disabled input disabled high-z write 0 low cpol* = 0, sclk rising; cpol = 1, sclk falling data bit latch high-z read 0 low cpol = 0, sclk falling; cpol = 1, sclk rising x next data bit shift** write 1 low cpol* = 1, sclk rising; cpol = 0, sclk falling data bit latch high-z read 1 low cpol = 1, sclk falling; cpol = 0, sclk rising x next data bit shift** table 6. spi pin function * cpol is the clock-polarity bit set in the control register of the host microprocessor. ** sdo remains at high-z until 8 bits of data are ready to be shifted out during a read. downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 20 maxim integrated spi serial-data bus the ds1390/ds1391/ds1394 provide a 4-wire spi seri-al-data bus to communicate in systems with an spi host controller. the ds1390/ds1391 support spi modes 1 and 3, while the ds1394 supports spi modes 0 and 2. both devices support single-byte and multiple-byte data transfers for maximum flexibility. the din and dout pins are the serial-data input and output pins, respectively. the cs input initiates and terminates a data transfer. the sclk pin synchronizes data move-ment between the master (microcontroller) and the slave (ds1390/ds1391) devices. the shift clock (sclk), which is generated by the microcontroller, is active only during address and data transfer to any device on the spi bus. input data (din) is latched on the internal strobe edge and output data (dout) is shifted out on the shift edge (figure 9). there is one clock for each bit transferred. address and data bits are transferred in groups of eight. address and data bytes are shifted msb first into the serial-data input (din) and out of the serial-data output (dout). any transfer requires the address of the byte to specify a write or read, followed by one or more bytes of data. data is transferred out of the dout pin for a read operation and into the din for a write opera-tion (figures 10 and 11). the address byte is always the first byte entered after cs is driven low. the most significant bit (w/ r ) of this byte determines if a read or write takes place. if w/ r is 0, one or more read cycles occur. if w/ r is 1, one or more write cycles occur.data transfers can occur one byte at a time or in multi- ple-byte burst mode. after cs is driven low, an address is written to the ds1390/ds1391/ds1394. after theaddress, one or more data bytes can be written or read. for a single-byte transfer, one byte is read or writ- ten and then cs is driven high. for a multiple-byte transfer, however, multiple bytes can be read or writtenafter the address has been written. each read or write cycle causes the rtc register address to automatically increment. incrementing continues until the device is disabled. the address wraps to 00h after incrementing to 0fh (during a read) and wraps to 80h after incre- menting to 8fh (during a write). note, however, that an updated copy of the time is only loaded into the user- accessible copy upon the falling edge of cs . reading the rtc registers in a continuous loop does not showthe time advancing. cpha = 0 cpha = 1 cs shift data out (read) mode 0 mode 2 data latch/sample (write) sclk when cpol = 0 shift data out (read) data latch/sample (write) data latch/sample (write) mode 1 mode 3 shift data out (read) data latch/sample (write) shift data out (read) sclk when cpol = 1 figure 9. serial clock as a function of microcontroller clock-polarity bit downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 21 maxim integrated w/r a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 cs sclk (mode 0) sclk (mode 1) din dout high impedance figure 10. spi single-byte write cs sclk (mode 0) sclk (mode 1) din dout high impedance w/r a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 figure 11. spi single-byte read downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 22 maxim integrated cs sclk din dout high-impedance address byte address byte data byte 0 data byte 1 din data byte n data byte 0 data byte 1 data byte n write read figure 12. spi multiple-byte burst transfer a1 a2 a3 a4 a5 a6 ce sclk i/o w/r a0 d1 d2 d3 d4 d5 d6 d7 d0 figure 13. 3-wire single-byte read a1 a2 a3 a4 a5 a6 ce sclk i/o w/r a0 d1 d2 d3 d4 d5 d6 d7 d0 figure 14. 3-wire single-byte write downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 23 maxim integrated 3-wire serial-data bus the ds1392/ds1393 provide a 3-wire serial-data bus,and support both single-byte and multiple-byte data transfers for maximum flexibility. the i/o pin is the seri- al-data input/output pin. the ce input is used to initiate and terminate a data transfer. the sclk pin is used to synchronize data movement between the master (microcontroller) and the slave (ds1392/ds1393) devices. input data is latched on the sclk rising edge and output data is shifted out on the sclk falling edge. there is one clock for each bit transferred. address and data bits are transferred in groups of eight. address and data bytes are shifted lsb first into the i/o pin. data is transferred out lsb first on the i/o pin for a read operation. the address byte is always the first byte entered after ce is driven high. the msb (w/ r ) of this byte deter- mines if a read or write takes place. if w/ r is 0, one or more read cycles occur. if w/ r is 1, one or more write cycles occur.data transfers can be one byte at a time or in multiple- byte burst mode. after ce is driven high, an address is written to the ds1392/ds1393. after the address, one or more data bytes can be written or read. for a single- byte transfer, one byte is read or written and then ce is driven low (figures 13 and 14). for a multiple-byte transfer, however, multiple bytes can be read or written after the address has been written (figure 15). each read or write cycle causes the rtc register address to automatically increment. incrementing continues until the device is disabled. the address wraps to 00h after incrementing to 0fh (during a read) and wraps to 80hafter incrementing to 8fh (during a write). note, howev- er, that an updated copy of the time is only loaded into the user-accessible copy upon the rising edge of ce. reading the rtc registers in a continuous loop does not show the time advancing. chip information transistor count: 11,525process: cmos substrate connected to ground thermal information theta-ja: 180?/wtheta-jc: 41.9?/w ce sclk i/o address byte data byte 0 data byte 1 data byte n figure 15. 3-wire multiple-byte burst transfer downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 24 maxim integrated x1 top view x2 v backup gnd sop sop sop sop v cc doutdin 12 3 4 87 6 sqw/int 5 10 9 sclk cs ds1390/ ds1394 x1x2 v backup gnd v cc i/oint 12 3 4 87 6 sqw 5 10 9 sclk ce ds1392 x1x2 v backup gnd v cc doutdin 12 3 4 87 6 rst 5 10 9 sclk cs ds1391 x1x2 v backup gnd v cc i/orst 12 3 4 87 6 sqw/int 5 10 9 sclk ce ds1393 pin configurations downloaded from: http:///
ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger 25 maxim integrated ds1390/ ds1394 ds1393 ds1391 ds1392 ce sqw i/o cpu v cc v cc v cc din cs gnd x2 x1 crystal sqw/int v backup sclk dout int cpu v cc v cc v cc ce gnd x2 x1 crystal sqw/int v backup sclk i/o cpu v cc v cc v cc dinrst rst cs gnd x2 x1 crystal v backup sclk dout cpu v cc v cc v cc gnd x2 x1 crystal v backup sclk rst rst typical operating circuits package information for the latest package outline information and land patterns (footprints), go to www.maximintegrated.com/packages . note that a ?? ?? or ??in the package code indicates rohs status only. package drawings may show a different suffix character, but the drawing pertains to the package regardless of rohs status. package type package code outline no. land pattern no. 10 ?op 21-0061 90-0330 downloaded from: http:///
maxim integrated cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a maxim integrated product. no circuit patent licenses are implied. maxim integrated reserves the right to change the circuitry and specifications without notice at any time. the parametric values (min and max limits) shown in the electrical characteristics table are guaranteed. other parametric values quoted in this data sheet are provided for guidance. 26 ________________________________ maxim integrated 160 rio robles, san jose, ca 95134 usa 1-408-601-1000 2012 maxim integrated products, inc. maxim integrated and the maxim integrated logo are trademarks of maxim integrated products, inc. ds1390?s1394 low-voltage spi/3-wire rtcs with trickle charger revision history revision number revision date description pages changed 0 7/04 initial release. added text to the general description section to indicate that the bus interface is disabled when the part switches to v backup ; replaced ordering information table with lead-free packages. 1 added 0mhz (min) spec for sclk frequency for spi, 3-wire ac timing. 3, 5 added the high impedance label for dout to figure 1 and added dout trace to figure 2. 4 changed all references of v bat to v backup . 8, 10 1 1/07 replaced the operation section with the poer control section and added new table 1. 11, 12 added the ds1394. all 2 8/08 in the address map section, added the description on how to avoid misreads of the time registers. 15 3 8/09 added ds1390u-33/v+ to the ordering information table. 1 4 10/12 updated ordering information 1 downloaded from: http:///


▲Up To Search▲   

 
Price & Availability of DS1394U-33

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X